<?php
	require_once("db_functions.php");
	if(!isset($_POST["feedid"]) || !isset($_POST["userid"]))
	{
		die("Didn't work");
	}
	$feedid = $_POST["feedid"];
	$userId = $_POST["userid"];
	$allfilters = GetFilters($userId, $feedid);
	echo("<filters>");
	foreach($allfilters as $filter)
	{
		echo ("<filter id='".$filter["filterid"]."' string='".$filter['filter_string']."' />");
	}
	echo("</filters>");
?>